package com.zzx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zzx.entity.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 产品工序分组表
 *
 * @author zzx
 * @since 2025-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_product_gx_group")
public class TProductGxGroup extends BaseEntity implements Serializable {


    /**
     * 产品工序分组ID
     */
    @ApiModelProperty("产品工序分组ID")
    @TableId
    private Long productGxGroupId;

    /**
     * 产品工序分组编码
     */
    @ApiModelProperty("产品工序分组编码")
    @TableField("product_gx_group_code")
    private String productGxGroupCode;

    /**
     * 产品工序分组名称
     */
    @ApiModelProperty("产品工序分组名称")
    @TableField("product_gx_group_name")
    private String productGxGroupName;

    /**
     * 产品ID
     */
    @ApiModelProperty("产品ID")
    @TableField("product_id")
    private Long productId;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @TableField(exist = false)
    private String gxName;
    @TableField(exist = false)
    private String gxCode;
    @TableField(exist = false)
    private BigDecimal unitPrice;
    @TableField(exist = false)
    private Integer num;
    @TableField(exist = false)
    private Long productGxId;
    @TableField(exist = false)
    private Long gxId;
    @TableField(exist = false)
    private Integer subSort;

    @TableField(exist = false)
    private String mark;

    @ApiModelProperty("产品-工序信息")
    @TableField(exist = false)
    @JsonProperty("tProductGxs")
    private List<TProductGx> tProductGxs;

}
